package com.zhanggm.springboot.demo.bean;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.context.annotation.Configuration;

/**
 * configuration注解，把userbean注入到IOC容器
 */
//@Configuration
@Data
public class UserBean {
    public UserBean() {
        System.out.println("通过xml方式配置的Bean");
    }

    private Integer id;
    private String username;
}
